<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>傲小兮</title>
	<link rel="stylesheet" href="../Public/css/Usercenter_index.css">
	<link rel="stylesheet" href="../Public/css/Usercenter_fensi.css">
	<link rel="stylesheet" href="../Public/bs/css/bootstrap.min.css">
	<link href="__PUBLIC__/favicon.ico" rel="shortcut icon">
	<link rel="stylesheet" href="../Public/css/home_index.css">
	<script src="../Public/bs/js/jquery.min.js"></script>
	<script src="../Public/bs/js/bootstrap.min.js"></script>
	<script src='../Public/kd/kindeditor-min.js'></script>
	<script src="../Public/js/AfterLogin_index.js"></script>
	<script type="text/javascript" src="../Public/layer/layer.js"></script>
	<script>
		//分配删除微博变量到js中
		del_src="__URL__/del";
		//分配点赞变量到js
		dianzan_src="__URL__/dianzan";
	</script>
	<script src="../Public/js/Usercenter_index.js"></script>
	<style>
		a{ color:#000; font-size:16px;}a:hover{color:#FA7D3C;cursor:pointer;text-decoration: none;}.btn1{display: inline-block;  height: 34px;width:100px;border-radius:10px;line-height: 32px;padding: 0 15px;background: #fa7d3c;text-align: center;margin-top:20px;}.btn1 a{font-size: 16px;color:#ffffff!important;}.bgimg_content_right{display:none;}#show1{background:#656A74}.righttot{position: absolute;top:45px;left:162px;width:500px;z-index:2;background: #fff;border:1px solid #ccc;  border-bottom:none;border-top:none}.personname2,.message2{width:380px;}.touxiang1{width:80px;float:left;margin-left:15px;margin-top:8px;}.touxiangbox1{width:65px;  height:65px;border-radius:65px;overflow:hidden;border:1px solid #ccc;}.message2 {float: left;width: 380px;font-size: 14px; margin-left: 15px;margin-top:15px; }.message2 span{font-size:13px;}.message2 span a{  font-size:13px;color:#FA7D3C;font-weight:bold;}.personname2{  width:380px;  height:25px;  float:left;  font-weight:bold;  font-size:18px;  margin-left:15px; margin-top:25px;  }hr{clear:left;}.right1{width:500px;z-index:2;background: #fff;border-bottom:1px solid #ccc;height:80px;}.personname2 a{color:#000000} .personname2 a:hover{color:#FE7E00;text-decoration: none}

	</style>
</head>
<body>
	<include file='Public:AfterLogin_head' />
	<div class="righttot">

	</div>
	<div class="contenttot">
		<div class="content">
			<div class="indexTop">
				<div class="touxiangba">
					<img src="__PUBLIC__/uploads/<{$touxiang}>" alt="">
				</div>
				<div class="name">
					<{$name}>
				</div>
				<div class="jieshao">
					<div class="btn1" style="<{$show}>">
						<a href="javascript:" onclick="addfocus('<{$isname}>','<{$name}>')">+关注</a>
					</div>
					<div class="btn1" style="<{$show1}> " id="show1">
						<a href="javascript:" >已关注</a>
					</div>
				</div>	
			</div>
			<block name="left">
			<div class="indexLeft">
				<div class="indexLeftTop">
					<div class="focus">
						<div class="left"><span class="ff" style="font-size:17px; font-weight:bold"><a href="__URL__/focus/username/<{$name}>"><{$fnums}></a></span><br/><span style="font-size:13px;color:#8B8B8B">关注</span></div>
						<div class="left"><span class="ff"style="font-size:17px; font-weight:bold"><a href="__URL__/fensi/username/<{$name}>"><{$fsnums}></a></span><br/><span style="font-size:13px;color:#8B8B8B">粉丝</span></div>
						<div class="left"><span class="ff"style="font-size:17px; font-weight:bold" ><a href="__URL__/index/username/<{$name}>" id='nums'><{$wbnums}></a></span><br/><span style="font-size:13px;color:#8B8B8B">微博</span></div>
					</div>
				</div>
				<div class="indexLeftCenter">
					<ul>
						<volist name="links"  id="info">
							<li><a href="<{$info['url']}>">#<{$info['name']}>#</a><span><{$info['title']}></span></li>
						</volist>
					</ul>
				</div>

			</div>
			</block>
			<block name="right">
			<volist name="rows" id='info'>
			<div class="indexRight">
				<div class="message">
					<{$info['content']}>
				</div>
				<div class="time">
					<{$info['time']}>
				</div>
				<div class="comment">
					<span ><a href="javaspript:" class="dele" index="<{$info['id']}>" userid="<{$info['user_id']}>">删除</a></span>
					<span>|</span>
					<span><a href="javascript:" class="forward" index="<{$info['id']}>">转发</a></span>
					<!--<span>|</span>-->
					<!--<span>评论</span>-->
					<span>|</span>
					<span class='glyphicon glyphicon-thumbs-up zan' index="<{$info['id']}>"><{$info['zan']}></span>
				</div>
				<div class="clear"></div>	
			</div>
			</volist>
		</block>
		
			<div class="clear"></div>
		</div>
	</div>
	<div class="bgimg_content_right">
		<span class='log spp'>登陆</span><span class='log'>短信登录</span>
		<div class='login'>
			<form action="" method='post' class='form1'>
				<!--<iframe src="__URL__/login" frameborder="0" width="100%" height="100%" name="main" target="_blank"></iframe>-->
				<div class="form-group">
					<input type="text" class="form-control"  placeholder="邮箱/会员账号/邮箱号" name='username' value="<{$_COOKIE[username]}>">
				</div>
				<div class="form-group">
					<input type="password" class="form-control"  placeholder="请输入密码" name='password' value="<{$_COOKIE[password]}>">
				</div>
				<div class="explan">
					<input type="checkbox" name='remember' value=1 <?php echo isset($_COOKIE['remember'])?'checked':'' ?>><span>记住我</span>
					<span class='explan_forget'>忘记密码</span>
				</div>
			</form>
			<div class="clear"></div>
		</div>
		<button class="btn btn-warning btn-lg btn-login">登陆</button>
		<div class="noweibo">
			还没有微博？<span><a href="__APP__/Register/index">立即注册</a></span>
		</div>
	</div>
</body>
<script>
	function addfocus(isname,name){
		if(isname!=name){
			if(isname==''){
				layer.open({
					type: 1,
					title: false,
					closeBtn: 1,
					shadeClose: true,
					skin: '.bgimg_content_right',
					content: $(".bgimg_content_right")
				});
			}
			else{
				$.post('__URL__/addfocus',{'name':name,'isname':isname},function(data){
					if(data.status==1){
						layer.alert(data.msg, {icon: 6});
						$('.btn1').eq(1).show();
						$('.btn1').eq(0).hide();
					}
					if(data.status==0){
						layer.alert(data.msg, {icon: 5});
						$('.btn1').eq(1).hide();
						$('.btn1').eq(0).show();
					}
				},'json');

			}
		}
		else{
			$('.btn1').hide();
		}

	}
	$('.btn-login').click(function(){
		username=$("input[name=username]").val();
		password=$("input[name=password]").val();
		$.post('__APP__/Index/login',{'username':username,'password':password},function(data){
			if(data.status==1){
				layer.alert(data.msg, {icon: 6});
				//window.location.href = '__APP__/AfterLogin/index';
				//window.history.back(-1);
				window.location.href =location;
			}
			if(data.status==0){
				layer.alert(data.msg, {icon: 5});

			}
		},'json')
	});
	//查人
	$('input[name=find]').change(function(){
		val=$(this).val();
		href='__APP__/Usercenter/index/username/';
		$.post('__APP__/AfterLogin/findPeople',{'value':val,'href':href},function(r){
			$('.righttot').append(r);
		});
	})
	//转发微博
	$('.forward').click(function(){
		id=$(this).attr('index');
		layer.confirm('您确定要转发这条微博吗？', {
			btn: ['确定','取消'] //按钮
		},function() {
			$.get('__URL__/forward', {val: id}, function (r) {
				if (r.status==1) {
					layer.msg(r.msg, {icon: 6});
					location.href = location;
				}
			},'json');
		})
	})
</script>
</html>